package cn.fengzhilun.javase.day08;

public class Phone {
	private String brand;
	private double price;
	public Phone(String brand, double price) {
		
		this.brand = brand;
		this.price = price;
	}
	public Phone() {

	}
	
	

	/**
	 * @return the brand
	 */
	public String getBrand() {
		return brand;
	}
	/**
	 * @param brand the brand to set
	 */
	public void setBrand(String brand) {
		this.brand = brand;
	}
	/**
	 * @return the price
	 */
	public double getPrice() {
		return price;
	}
	
	public void setPrice(double price) {
		this.price = price;
	}
	public void call() {
		System.out.println("正在使用价格为"+(int)price+"元的"+brand+"品牌的手机打电话....");
		
	}
	public void sendMessage() {
		System.out.println("正在使用价格为"+(int)price+"元的"+brand+"品牌的手机打发信息....");
		
	}
	public void playGame() {
		System.out.println("正在使用价格为"+(int)price+"元的"+brand+"品牌的手机打游戏....");
		
	}
}
